<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>
<?php 
	$ci = & get_instance(); 
	$cat_id = intval($_POST['cat_id']); 
	$CAT = $ci->category_manual_entity->init('id',$cat_id);
?>

<form action="<?php echo site_url('admin/dataman/manual_event/manual_category_set_answer_submit');?>" name="manual_category_set_answer_submit" id="manual_category_set_answer_submit" method="post" enctype="multipart/form-data" >
	<input type="hidden" name="cat_id" id="cat_id" value="<?php echo $cat_id;?>" />
	<input type="hidden" name="match_id" id="match_id" value="<?php echo $CAT->getMatchId();?>" />
	
	<div class="clrboth"></div>
	<div class="grid2"><span class="bold">*Category Answer:</span></div>
	<div class="grid6"><input type="text" maxlength="255" id="answer" name="answer" value="<?php echo $CAT->getCorrectAnswer();?>" class="std-input"/></div>
	<div class="grid2"><span class="bold red hidden" id="answer_error">Required field.</span></div>
	<div class="clrboth"></div>
	
	<!--
	<div class="clrboth"></div>
	<div class="grid2"><span class="bold">*Fix Answer:</span></div>
	<div class="grid6"><input type="checkbox" name="fix_answer" id="fix_answer" value="1" <?php //if($CAT->getFixAnswer() == 1){echo 'checked="checked"';};?> /></div>
	<div class="grid2"><span class="bold red hidden" id="fix_answer_error">Required field.</span></div>
	<div class="clrboth"></div>
	-->
	<div class="clrboth"></div>
	<input type="hidden" name="fix_answer" id="fix_answer" value="1" />
	
	<div class="grid2">&nbsp;</div>
	<div class="grid6"><input type="submit" class="button" /> <?php echo loader_image('id="loader_image" class="hidden"');?></div>
	<div class="clrboth"></div>	
	
</form>
